using System.ComponentModel.DataAnnotations;

namespace Lzfy_His_Service.Models
{
    /// <summary>
    /// 用户基本科室权限查询请求
    /// </summary>
    public class UserPermissionRequest
    {
        /// <summary>
        /// 用户名（对应前端的username）
        /// </summary>
        [Required(ErrorMessage = "用户名不能为空")]
        public string Username { get; set; } = string.Empty;
    }

    /// <summary>
    /// 用户基本科室权限查询响应
    /// </summary>
    public class UserPermissionResponse
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; } = string.Empty;

        /// <summary>
        /// 角色上下文值
        /// </summary>
        public string RoleOfContextValue { get; set; } = string.Empty;

        /// <summary>
        /// 科室名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 用户姓名
        /// </summary>
        public string PeopleName { get; set; } = string.Empty;

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; } = string.Empty;
    }

    /// <summary>
    /// 用户基本科室权限查询结果
    /// </summary>
    public class UserPermissionResult
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Success { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; } = string.Empty;

        /// <summary>
        /// 权限数据列表
        /// </summary>
        public List<UserPermissionResponse> Data { get; set; } = new List<UserPermissionResponse>();
    }
}